package com.chaoxing.service.impl;

import com.chaoxing.entity.User;
import com.chaoxing.mapper.UserMapper;
import com.chaoxing.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserServiceImpl implements UserService {
    @Resource
    private UserMapper userMapper;

    @Override
    public int insert(User record) {
        return userMapper.insert(record);
    }

    @Override
    public Integer loginSys(String name, String pwd) {
        return userMapper.loginSys(name,pwd);
    }
}
